package com.server.questionbank.snframe.service.VerificationCode;

import com.server.questionbank.snframe.domain.VerificationCode.ImageCode;
import com.server.questionbank.snframe.domain.ResDTO.ResponseResult;

import java.awt.*;
import java.io.IOException;

// 验证码服务
public interface VerificationCodeService {
    // 获取图片验证码
    public ResponseResult<ImageCode> getImageCode() throws IOException, FontFormatException;

    // 发送短信验证码
    public ResponseResult<String> sendSmsCode(String phoneNumber);
    // 发送邮箱验证码
    public ResponseResult<String> sendEmailCode(String email);

    // 校验图片验证码
    public ResponseResult<String> checkImageCode(ImageCode imageCode);

    // 校验短信验证码
    public ResponseResult<String> checkSmsCode(String phoneNumber, String code);
    // 校验邮箱验证码
    public ResponseResult<String> checkEmailCode(String email, String code);
}